# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=libldac
pkgver=2.0.2.3
pkgrel=1
pkgdesc="Lossy audio codec for Bluetooth connections"
url="https://github.com/EHfive/ldacBT"
license="Apache-2.0"
arch="all !s390x" # no support for big-endian
makedepends="cmake samurai"
subpackages="$pkgname-dev"
source="https://github.com/EHfive/ldacBT/releases/download/v$pkgver/ldacBT-$pkgver.tar.gz"
builddir="$srcdir/ldacBT"
options="!check" # no test suite

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
0e42723a1e7d748b28b13d73823fd5378a64100d5e27ae90cf3214494f3e199c526e219efd1329b2ec2b3195e1a6b3c98c8210ab7e4e6b98077199ef0f64c02e  ldacBT-2.0.2.3.tar.gz
"
